<?php 
    $event = new BWEvent($eventID);
    $brandList = $event->getMessageManager()->getMessageList();
?>
<div style="font-family: 微软雅黑; font-size: 14px; line-height: 28px">
    <div style="border: 1px solid #dedede; padding: 8px 8px; background-color: white; margin: 10px;">
         <?php
                foreach ($brandList as $brand) {
                    $brandImage = $brand->getMediaManager()->getMedia('image')->content;
                   if(strlen($brandImage)>0){
                       $goodPic=$brandImage;
                   }
                   else{
                       $goodPic='#';
                   }
         ?>
        <div style="width: 60px; height: 120px; float: left; margin-left: 20px; margin-bottom: 5px;">
            <div style="width: 60px; height: 60px; border: 1px solid #dedede; border-radius: 30px; overflow: hidden;">
                <img src="<?php echo Yii::app()->request->baseUrl.$goodPic; ?>" style="width:100%; height:100%;"/>
            </div>
            <div style="text-align: center;">
            <?php echo $control->getLink('品牌信息',array('messageID'=>$brand->id)); ?> <h4> <?php echo $brand->name; ?></h4>
            </div>
        </div>
         <?php } ?>
        <div style="width: 100%; height: 1px; clear: both;"></div>  
    </div>
</div>
